<template>
  <img class="avatar-img" :src="url" :style="{width:size+'px',height:size+'px'}"/>
</template>

<script>
export default {
    props:{
        url:{
            type:String,
            required:true,
        },
        size:{
            type:Number,
            required:true
        }
    }
}
</script>

<style lang="less" scroped>
.avatar-img{
    border-radius: 50%;
    object-fit: cover;
    display:block;
}
</style>